package com.aloha.common.postprocessor;

import com.aloha.springframework.beans.BeansException;
import com.aloha.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @author DaiZhiHeng
 * @date 2023/7/22 22:02
 */
public class InterruptBeanPostProcessor implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        System.out.println(beanName + " 执行 InterruptPostProcessor Before 方法");
        return null;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println(beanName + " 执行 InterruptPostProcessor After 方法");
        return null;
    }
}

